package com.gurun.model.database.entity;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;

/**
 * Created by harry on 2018/3/19.
 */
@Entity(tableName = "gateway_command")
public class GateWayCommand {
    @PrimaryKey(autoGenerate = true)
    protected int id;
    @ColumnInfo(name = "cmd")
    protected String cmd;
    @ColumnInfo(name = "sid")
    protected String sid;
    @ColumnInfo(name = "token")
    protected String token;
    @ColumnInfo(name = "short_id")
    protected int short_id;
    @ColumnInfo(name = "model")
    protected String model;
    @ColumnInfo(name = "data")
    protected String data;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getShort_id() {
        return short_id;
    }

    public void setShort_id(int short_id) {
        this.short_id = short_id;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Ignore
    @Override
    public String toString() {
        return "GateWayCommand{" +
                "id=" + id +
                ", cmd='" + cmd + '\'' +
                ", sid='" + sid + '\'' +
                ", token='" + token + '\'' +
                ", short_id=" + short_id +
                ", model='" + model + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
}
